package services;

import com.typesafe.plugin.MailerAPI;
import com.typesafe.plugin.MailerPlugin;

public class Mailer {

	public static void sendHtmlMail(String subject, String body,
			String... recipients) {
		MailerAPI mail = play.Play.application().plugin(MailerPlugin.class)
				.email();

		mail.setSubject(subject);
		for (String recipient : recipients) {
			mail.addRecipient(recipient);
		}
		mail.addFrom("yo.porahi@gmail.com");
		mail.sendHtml(body);
	}
}
